package demo;
//抽象类
abstract class Animals{
    //抽象方法
    public abstract void print();
}

class Dog extends Animals{
    @Override
    public void print() {
        System.out.println();
    }
}

public class Test {
    public static void main(String[] args) {
        Animals animals=new Dog();


    }
}
